#!/usr/bin/python
shoplist = ['a','b','c']

print 'item 0 is', shoplist[-1]
print 'item 0 is', shoplist[-3]


print shoplist[1:3]
print shoplist[1:-1]
print shoplist[:]

name = 'sphinx'

print name[1:3]
print name[:]
